package com.shievy.anweb.webview.api

import com.shievy.anweb.webview.entry.JsParams
import com.shievy.anweb.webview.entry.WebHandler
import com.shievy.anweb.webview.web.callback.WebResultCallBack

/**
 * WebView js与Native 相互通讯的切面
 * */
interface WebTelecomApiService {
    /**
     * 通讯的id
     * */
    fun telecomID(): String

    /**
     * 执行下一步操作
     * */
    fun doNext(jsParams: JsParams, callBack: WebHandler? = null) {
        callBack?.commit(jsParams.jsMethodID)
    }


}